package com.fr.data.core.db.dialect;

public class PostgreSQLDialect extends AbstractDialect
{
  public String columnType2SQL(int paramInt, String paramString)
  {
    if (paramInt == -7)
      return "BOOL";
    return super.columnType2SQL(paramInt, paramString);
  }

  public String getIdentitySelectString(String paramString1, String paramString2, int paramInt)
    throws Exception
  {
    return "select currval('" + paramString1 + '_' + paramString2 + "_seq')";
  }

  public boolean supportsLimit()
  {
    return true;
  }

  public String getLimitString(String paramString, int paramInt1, int paramInt2)
  {
    return (paramString.length() + 20) + paramString + new StringBuffer().append(" limit ").append(paramInt2).append(" offset ").append(paramInt1).toString();
  }

  public String quartzDelegateClass()
  {
    return "com.fr.third.org.quartz.impl.jdbcjobstore.PostgreSQLDelegate";
  }
}